<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template/default/commonLayout.xhtml">

	<ui:define name="content">

		<h:form id="breadCrumb">
			<p:breadCrumb>
				<p:menuitem value="#{msg['index']}" url="./index.xhtml" />
				<p:menuitem value="#{msg['chart']}" url="#" />
			</p:breadCrumb>
		</h:form>

		<h1>
			<h:outputText value="#{msg['chart']}" />
		</h1>

		<h:form id="chartForm">

			<p:poll interval="1" update="pieChart" />

			<p:pieChart id="pieChart" value="#{chartBean.pieModel}"
				legendPosition="w" title="#{msg['sample.pie.chart']}"
				style="width:400px;height:300px" />

		</h:form>

	</ui:define>

</ui:composition>

</html>